#include<iostream>
using namespace std;
int main()
{
	int a,b,s,i;
	a=1;
	b=2;
	for(i=1;i<=8;i++)
	{
		s=a+b;
		a=b;
		b=s;
	}
	cout<<s;
	return 0;
}
